package com.intretech.umsin.datasource.codemapping.entity;

import java.io.Serializable;

/**
 * @version V1.0
 * @ClassName: rootClassInfo
 * @Description:
 * @author: 李启联
 * @date: 2020-03-19 09:24
 * @Copyright: Copyright (c), 2020
 */
public class RootClassInfo implements Serializable {
    /**
     * 该标注指定需要"码名"映射实体对象类型
     * @return
     */
    private Class rootClass ;

    /**
     * 该标注指定需要"码名"映射实体对象类全名.<br/>
     * 这属性和 rootClass()属性二选一,如果设置了targetClass()属性则无需设置该属性。<br/>
     * 一般情况是在编译期未引入实体对象时设置该值来替代rootClassName()属性<br/>
     * @return
     */
    private String rootClassName ;


    public Class getRootClass() {
        return rootClass;
    }

    public void setRootClass(Class rootClass) {
        this.rootClass = rootClass;
    }

    public String getRootClassName() {
        return rootClassName;
    }

    public void setRootClassName(String rootClassName) {
        this.rootClassName = rootClassName;
    }

    public RootClassInfo(Class rootClass, String rootClassName) {
        this.rootClass = rootClass;
        this.rootClassName = rootClassName;
    }

    public RootClassInfo() {
    }

    @Override
    public String toString() {
        return "rootClassInfo{" +
                "rootClass=" + rootClass +
                ", rootClassName='" + rootClassName + '\'' +
                '}';
    }
}